// 车队
import request from "@/utils/https/requests";
// 列表
export function fleetsList(data: any) {
  return request({
    url: "/fleets/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddFleets(data: any) {
  return request({
    url: "/fleets/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModFleets(data: any) {
  return request({
    url: `/fleets/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function fleetsDetail(id: string) {
  return request({
    url: `/fleets/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteFleets(id: string) {
  return request({
    url: `/fleets/postDelete/${id}`,
    method: "post",
  });
}
